xsm: Corrected check in io_has_perm()
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 23 Oct 2009 09:12:52 +0000 (10:12 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 23 Oct 2009 09:12:52 +0000 (10:12 +0100)
Fix the check in io_has_perm() to correctly check the start and end
of I/O Memory.

Signed-off-by : George Coker <gscoker@alpha.ncsc.mil>
Signed-off-by : Paul Nuzzi <pjnuzzi@tycho.ncsc.mil>

xen/xsm/flask/hooks.c

index 2b996c5d1e23e951acc54645b016ad1b8c8205a9..c2aaec80b62a9ee86cc121d735fdcc43cbb4171f 100644 (file)
@@ -1176,7 +1176,7 @@ static int io_has_perm(struct domain *d, char *name, unsigned long s,
             return rc;
 
         if ( s != e )
-            rc = iomem_has_perm(d, s, access);
+            rc = iomem_has_perm(d, e, access);
     }
     else if ( strcmp(name, "Interrupts") == 0 )
     {